
{% extends "base.html" %}

{% block breadcrumb_current %}
    
{% endblock %}

{% block content %}

    <h6 style="color: #417690;">操作提示：</h6>
    <h7 style="color: #417690;">系统校验检查认为存在错误的，标记为错误MAC或错误SN，系统检查发现MAC已经存在的标记为重复数据。</h7>
    <h7 style="color: #417690;">导入数据库时，系统将忽略错误数据和重复数据，仅导入其他数据。</h7>

<hr>
    <div class="button-group">
        <form action="{% url 'import_management' %}" method="post">
            {% csrf_token %}
            <button type="submit" class="btn btn-primary">检查比对</button>
            <a href="{% url 'loadmanagement' %}" class="btn btn-secondary">取消</a>
        </form>
        
    </div>
    <table  class="table table-hover" style="margin-top: 15px;">
        <thead>
            <tr>
                {% for key in data.0.keys %}
                <th>{{ key }}</th>
                {% endfor %}
            </tr>
        </thead>
        <tbody>
            {% for row in data %}
            <tr>
                {% for value in row.values %}
                <td>{{ value }}</td>
                {% endfor %}
            </tr>
            {% endfor %}
        </tbody>
    </table>
{% endblock %}